package org.riahispano.twitterds.services;

import org.riahispano.twitterds.domain.Status;

import java.util.List;

/**
 * @author: ecamacho
 * riahispano 2010
 */
public interface TwitterTimeLineService {

    /**
     * Returns the messages of the friends of the given twitter acount
     * @param user
     * @param password
     * @param page
     * @return
     */
    List<Status> getFriendsTimeline(  String user, String password, int page );

    /**
     * Returns the messages of the given twitter account
     * @param user
     * @param password
     * @param page
     * @return
     */
	List<Status> getUserTimeline( String user, String password, int page );

    /**
     * Returns the messages of the friends of the given twitter account with a messageId
     * above lastId
     * @param user
     * @param password
     * @param lastId
     * @return
     */
	List<Status> getFriendsTimelineSinceId( String user, String password, long lastId );

    /**
     * Return the last messageId of the given collection of messages
     * @param statuses
     * @return
     */
	long getLastMessageId( List<Status> statuses );
}
